package org.dromara.system.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.system.domain.SysFloor;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 楼栋管理视图对象 sys_floor
 *
 * @author LSL
 * @date 2024-05-23
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysFloor.class)
public class SysFloorVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 楼ID
     */
    @ExcelProperty(value = "楼ID")
    private Long floorId;

    /**
     * 楼编号
     */
    @ExcelProperty(value = "楼编号")
    private String floorNum;

    /**
     * 小区楼名称
     */
    @ExcelProperty(value = "小区楼名称")
    private String name;

    /**
     * 小区ID
     */
    @ExcelProperty(value = "小区ID")
    private Long communityId;

    /**
     * 建筑面积
     */
    @ExcelProperty(value = "建筑面积")
    private BigDecimal floorArea;

    /**
     * 楼栋加入排序
     */
    @ExcelProperty(value = "楼栋加入排序")
    private Long seq;

    /**
     * 经度
     */
    @ExcelProperty(value = "经度")
    private String lat;

    /**
     * 纬度
     */
    @ExcelProperty(value = "纬度")
    private String lng;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
